@import '@/styles/common/variables.scss';
.downloadCenter{
  >div{
    width: $homeW;
    margin: $menuHeight auto 0;
  }
  .download_title{
    text-align: center;
    color: $mainColor;
    font-size: 32px;
    font-weight: 700;
    padding: 32px 0;
  }
  // 搜索模块
  .download_search{
    text-align: center;
    .inline-input{
      width: 66.6%;
      height: 56px;
      .el-input__inner{
        border-color: #CDCDCD;
        border-radius: 8px;
        height: 56px;
        line-height: 56px;
        padding: 0 72px;
        font-size: 18px;
        &:focus~.el-input__suffix{
          .el-input__clear{
            display: inline-block;
          }
        }
        &:focus{  
          border-color: $mainColor;
        }
        
      }
      &:hover{
        .el-input__suffix{
          .el-input__clear{
            display: none;
          }
        }  
      }
    
      .el-input__prefix{
        left: 24px;
        .iconfont {
          line-height: 56px;
          font-size: 24px;
          color: #CDCDCD;
          cursor: pointer;
          &::before{
            color: #CDCDCD; 
          }
          &:hover{
            &::before{
              color: $mainColor;
            }
          }
        }
        
      }
      .el-input__suffix{
        right: 24px;
        .el-input__clear {
          line-height: 56px;
          font-size: 16px;
          color: #CDCDCD;
          &::before{
            color: #CDCDCD;
          }
            font-family: 'iconfont' !important;
          display: inline-block;
          &::before{
            content: "\e8d4";
          }
          &:hover{
            &::before{
              color: $mainColor;
            }
          }
        }
      
      }
     
    }
    .el-button{
      width: 160px;
      margin-left: 24px;
      height: 56px;
    }

  }

  // 类型选择
  .download_product{
    margin: 56px 0;
    >p{
      color: $mainColor;
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 16px;
    }
    .swiper{
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;

      .swiper-container{
        width: 100%;
        &:hover{
          .swiper-slide{
            .name{
              color: #7e7e7e;
            }
            .image_bg{
              opacity: 0.4;
            }
          }
  
        }
        .swiper-slide{
          cursor: pointer;
          .image_bg{
            padding-bottom: 60%;
            height: 0;
            background-repeat: no-repeat;
            background-size: contain;
            width: 60%;
            margin: 0 auto;
          }
          .name{
            margin-top: 16px;
            text-align: center;
            font-size: 14px;
            color: $mainColor;
            word-break: break-word;
          }
          &.active,
          &:hover{
            .name{
              color: $mainColor;
            }
            .image_bg{
              opacity: 1;
            }
          }
    
        }
      }
      &.swiperSelect{
        .swiper-slide{
          .name{
            color: #7e7e7e;
          }
          .image_bg{
            opacity: 0.4;
          }
          &.active{
            .name{
              color: $mainColor;
            }
            .image_bg{
              opacity: 1;
            }
          }
        }
      }
      &.swiperOutLen{
        .swiper_next,
        .swiper_prev{
          display: block;
          width: 4%;
        }
        .swiper-container{
          margin: 0 3%;
        }
      }
      .swiper_next,
      .swiper_prev{
        display: none;
        &.disabled{
          .swiper_download_btn{
            background-color: #F2F1F0;
            cursor: not-allowed;
          }
          &:hover{
            .swiper_download_btn{
              background-color: #F2F1F0;
            }
          }
        }
        &:hover{
          .swiper_download_btn{
            background-color: $mainColor;
          }
        }
      }
      .swiper_download_btn{
        width: 100%;
        height: 80px;
        text-align: center;
        border: none;
        background-color: #CDCDCD;
        border-radius: 4px;
        cursor: pointer;
        outline: none;
        i{
          font-size: 24px;
          color: #ffffff;
        }
      }
    }
    

  }

  .download_table{
    padding-bottom: 56px;
    .download_table_div{
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      .download_table_title{
        color: $mainColor;
        font-size: 20px;
        font-weight: 700;
      }
      .el-select {
        .el-input__inner{
          padding-right: 20px;
          border: none;
          text-align: right;
          color: $mainColor;
          font-size: 14px;
          right: 6px;
          position: relative;
          &::-webkit-input-placeholder { /* WebKit browsers */
            color: $mainColor;
            font-size: 14px;
            font-weight: 700;
          }
          &::-moz-placeholder { /* Mozilla Firefox 19+ */
            color: $mainColor;
            font-size: 14px;
            font-weight: 700;
          }
          &:-ms-input-placeholder { /* Internet Explorer 10+ */
            color: $mainColor;
            font-size: 14px;
            font-weight: 700;
          }
        }
        .el-select__caret{
          color: $mainColor;  
          opacity: 1;
          width: 14px;
          font-family: 'iconfont' !important;
          transform: rotateZ(90deg);
          
          &.is-reverse{
            transform: rotateZ(270deg);
          }
          &::before{
            content: '\e8a6';
          }
        }
        .el-input__prefix{
          right: 0;
        }
        .popper__arrow{
          left: calc(100% - 35px) !important;
        }
      }
    }
    .table_more{
      text-align: center;
      padding: 32px 0 0px;
      span{
        color: #1890FF;
        font-size: 16px;
        cursor: pointer;
        &:hover{
          color: #1d86d4;
        }
      }
     
      i{
        font-size: 20px;
        color: #1890FF;
        cursor: pointer;
        &:hover{
          color: #1d86d4;
        }
      }
     
    }
    .table{
      .table_th{
        display: flex;
        align-items: center;
        height: 64px;
        background-color: #F9F9F9;
        p{
          color: $mainColor;
          border-bottom: none;
          font-size: 16px ;
          font-family: 700;
          word-break: break-word;
          line-height: 1;
          text-align: center;
          padding: 0 12px 0 24px;
          font-weight: 700;
        }
      }
      .table_td{
        position: relative;
        border-bottom: 1px solid #FBFBFB;
        height: auto;
        .table_td_content{
          display: flex;
          align-items: center;
          height: 72px;
          &:hover{
            p{
              color: $mainColor;   
            }
            .icon-plus{
              color: $mainColor;   
            }
          }
        }
        p{
          padding: 0;
          word-break: break-word;
          padding:  0 24px;
          color: #7E7E7E;
          font-size: 16px;
          text-align: center;
        }
       
        .icon-Download{
          font-size: 20px;
          color: #1890FF;
          cursor: pointer;
          &:hover{
            color: #1d86d4;
          }
        }
        .table_expand{
          span{
            -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
            transition: transform .3s ease-in-out;
            display: inline-block;
          }
          .icon-plus{
            font-size: 20px;
            cursor: pointer;
            color: #7E7E7E;
            &:hover{
              color: $mainColor;
            }
          }
        }
        .expand_details{
          height: 0;
          overflow: hidden;
          transition: all .3s ease-in-out;
          opacity: 0;
          font-size: 0;
          padding: 0;
          line-height: 72px;
          >p{
            text-align: left;
            color: #7e7e7e;
            font-size: 16px;
            white-space: break-spaces;
          }
        }
        &.details_show{
          height: auto;
          .table_expand{
            span{
              -webkit-transform: rotate(180deg);
              transform: rotate(180deg);
              transition: transform .3s ease-in-out;
              display: inline-block;
            }
            .icon-plus{
              color: $mainColor;
              &::before{
                content: '\e8e4';
              }
            }
          }
          .expand_details{
            opacity: 1;
            background-color: #FBFBFB;
            // padding: 24px 0;
            padding: 0;
            height: 72px;
            line-height: 72px;
          }
          
        }
      }
      .table_th, .table_td{
        .table_name{width: 23%;    text-align: left;   }
        .table_version{width: 12%;}
        .table_ealease_date{width: 15%;}
        .table_memory_size{width: 12%;}
        .table_category{width: 19%;  text-align: left; }
        .table_download{width: 12%;}
        // .table_expand{width: 1%;}
      }
      
      
    }
  }
  // 自动搜索
  .el-autocomplete-suggestion{
    border: none;
    box-shadow: 0 0 8px 0  rgba(54, 52, 52, 0.08);
    li{
      height: 56px;
      line-height: 56px;
      padding:  0 24px ;
      color: #7E7E7E;
      font-size: 14px;
      text-align: left;
      &:hover{
        background-color: #F9F9F9;
        color: $mainColor;
      }
      .keyword{
        color: $mainColor;
        font-weight: bolder;
      }
    }
  } 
}

.download_table_select{
  &.el-popper[x-placement^="bottom"] .popper__arrow{
    left: calc(100% - 16px) !important;
   }
   &.el-popper[x-placement^="bottom"] {
     margin-top: 4px;
   }
  .el-select-dropdown__item{
    color: #7e7e7e;
    &.selected{
      font-weight: normal;
      color: #363434;
    }
    &:hover{
      color: #363434;
    }
    &:hover,
    &.hover{
      background-color: #ffffff;
    }
  } 

}
